package com.ws.common.utils;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public class PageUtils {

    public static<T> Page<T> newPage(Integer current,Integer size){
        if(current==null){
            current=1;
        }
        if(size==null){
            size=10;
        }
        return new Page<T>(current,size);
    }
}
